#ifndef TRAININFO_H
#define TRAININFO_H
#include<QVector>
class TrainInfo
{
public:
    TrainInfo();

    QString getTrainNum(int);
    QString getStartStation(int);
    QString getEndStation(int);
    QString getStartTime(int);
    QString getEndTime(int);
    int getLeftTickets(int);
    int getPrice(int);

    void setLeftTickets(int,int);

    void addTrainNum(QString);
    void addStartStation(QString);
    void addEndStation(QString);
    void addStartTime(QString);
    void addEndTime(QString);
    void addLeftTickets(int);
    void addPrice(int);

    void addItems(QVector<QString>);
    void clearAllItems();

private:
    QVector<QString> trainNumList;
    QVector<QString> startStationList;
    QVector<QString> endStationList;
    QVector<QString> startTimeList;
    QVector<QString> endTimeList;
    QVector<int>     leftTicketsList;
    QVector<int>     priceList;
    int infoNum;
};

#endif // TRAININFO_H
